package com.guomao.controller;


import com.guomao.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class BookServlet {

//    private BookService bookService = new BookService();

    @Autowired
//    @Resources
    private BookService bookService;

    public void show() {
        System.out.println("Book Servlet");
        bookService.show();
    }
}
